package com.clz.hyperit.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.clz.hyperit.dao.OrderDao;
import com.clz.hyperit.entity.Order;
@Repository("orderDao")
public class OrderDaoImpl extends BaseDaoImpl<Order> implements OrderDao {

	public List<Order> getByUserID(Integer userdetail_id) {
		String hql = "from Order where userDetail_id = :userDetail_id";
		return getCurrentSession().createQuery(hql).setInteger("userDetail_id",userdetail_id).list();
	
	}

}
